﻿/**
 * 前端管理的无需权限验证的根路由配置页面
 * 无需权限即可访问的路由页面，均为根路由页面
 * 如路由需放在 Layout 路由内；或为根路由但需要进行权限验证，则不可将路由放在该文件内，可将其放在 permitRoutes.ts 文件内
 */
const remainingRouter = [
  {
    path: '/Login',
    name: 'Login',
    component: () => import('@/views/Login/Login.vue'),
    meta: {
      title: 'login',
      visible: false,
      sort: 10000,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/SSO',
    component: () => import('@/views/Login/Login.vue'),
    name: 'SSOLogin',
    meta: {
      title: 'ssoLogin',
      visible: false,
      sort: 10001,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/SocialLogin',
    component: () => import('@/views/Login/SocialLogin.vue'),
    name: 'SocialLogin',
    meta: {
      title: 'socialLogin',
      visible: false,
      sort: 10002,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/403',
    name: 'Exception403',
    component: () => import('@/views/Exception/403/index.vue'),
    meta: {
      title: 'noPermit',
      visible: false,
      sort: 10003,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/404',
    name: 'Exception404',
    component: () => import('@/views/Exception/404/index.vue'),
    meta: {
      title: 'noFound',
      visible: false,
      sort: 10004,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/500',
    name: 'Exception500',
    component: () => import('@/views/Exception/500/index.vue'),
    meta: {
      title: 'serverError',
      visible: false,
      sort: 10005,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/NetworkError',
    name: 'NetworkError',
    component: () => import('@/views/Exception/NetworkError/index.vue'),
    meta: {
      title: 'networkError',
      visible: false,
      sort: 10006,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/Developmenting',
    name: 'Developmenting',
    component: () => import('@/views/Exception/Developmenting/index.vue'),
    meta: {
      title: 'development',
      visible: false,
      sort: 10007,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/UpgradeRepair',
    name: 'UpgradeRepair',
    component: () => import('@/views/Exception/UpgradeRepair/index.vue'),
    meta: {
      title: 'upgradeRepair',
      visible: false,
      sort: 10008,
      showTag: 0,
      type: '2'
    }
  },
  {
    path: '/redirect/:path(.*)',
    name: 'Redirect',
    component: () => import('@/views/Redirect/index.vue'),
    meta: {
      visible: false,
      sort: 10009,
      showTag: 0,
      type: '2'
    }
  } //, 此处注释掉 404 通配，是为了解决在未登录情况下，访问为实例化的路由会直接跳转404
  // 404 通配还是需要在动态路由实例化后，再进行实例化
  // {
  //   path: '/:pathMatch(.*)',
  //   redirect: '/404',
  //   name: '404',
  //   meta: {
  //     visible: false,
  //     sort: 10010,
  //     showTag: 0,
  //     type: '2'
  //   }
  // }
]

export default remainingRouter
